
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_Hans">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>基于类的通用视图——扁平化索引 &#8212; Django 3.2.6.dev 文档</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/language_data.js"></script>
    <link rel="index" title="索引" href="../../genindex.html" />
    <link rel="search" title="搜索" href="../../search.html" />
    <link rel="next" title="点击劫持保护" href="../clickjacking.html" />
    <link rel="prev" title="基于日期的混入" href="mixins-date-based.html" />



 
<script src="../../templatebuiltins.js"></script>
<script>
(function($) {
    if (!django_template_builtins) {
       // templatebuiltins.js missing, do nothing.
       return;
    }
    $(document).ready(function() {
        // Hyperlink Django template tags and filters
        var base = "../templates/builtins.html";
        if (base == "#") {
            // Special case for builtins.html itself
            base = "";
        }
        // Tags are keywords, class '.k'
        $("div.highlight\\-html\\+django span.k").each(function(i, elem) {
             var tagname = $(elem).text();
             if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
                 var fragment = tagname.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
             }
        });
        // Filters are functions, class '.nf'
        $("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
             var filtername = $(elem).text();
             if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
                 var fragment = filtername.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
             }
        });
    });
})(jQuery);</script>

  </head><body>

    <div class="document">
  <div id="custom-doc" class="yui-t6">
    <div id="hd">
      <h1><a href="../../index.html">Django 3.2.6.dev 文档</a></h1>
      <div id="global-nav">
        <a title="Home page" href="../../index.html">Home</a>  |
        <a title="Table of contents" href="../../contents.html">Table of contents</a>  |
        <a title="Global index" href="../../genindex.html">Index</a>  |
        <a title="Module index" href="../../py-modindex.html">Modules</a>
      </div>
      <div class="nav">
    &laquo; <a href="mixins-date-based.html" title="基于日期的混入">previous</a>
     |
    <a href="../index.html" title="API 参考" accesskey="U">up</a>
   |
    <a href="../clickjacking.html" title="点击劫持保护">next</a> &raquo;</div>
    </div>

    <div id="bd">
      <div id="yui-main">
        <div class="yui-b">
          <div class="yui-g" id="ref-class-based-views-flattened-index">
            
  <div class="section" id="s-class-based-generic-views-flattened-index">
<span id="class-based-generic-views-flattened-index"></span><h1>基于类的通用视图——扁平化索引<a class="headerlink" href="#class-based-generic-views-flattened-index" title="永久链接至标题">¶</a></h1>
<p>该索引提供了基于类的视图的参考文档的另一种组织形式。对于每个视图，类树中的有效属性和方法都在该视图下表示。关于按定义行为的类组织的参考文档，见 <a class="reference internal" href="index.html"><span class="doc">基于类的视图</span></a>。</p>
<div class="admonition seealso">
<p class="first admonition-title">参见</p>
<p class="last"><a class="reference external" href="https://ccbv.co.uk/">基于类的经典视图</a> 提供了一个很好的界面来浏览内置的基于类的视图的类层次结构。</p>
</div>
<div class="section" id="s-simple-generic-views">
<span id="simple-generic-views"></span><h2>简单的通用视图<a class="headerlink" href="#simple-generic-views" title="永久链接至标题">¶</a></h2>
<div class="section" id="s-view">
<span id="view"></span><h3><code class="docutils literal notranslate"><span class="pre">View</span></code><a class="headerlink" href="#view" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="View">
<em class="property">class </em><code class="descname">View</code><a class="headerlink" href="#View" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-templateview">
<span id="templateview"></span><h3><code class="docutils literal notranslate"><span class="pre">TemplateView</span></code><a class="headerlink" href="#templateview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="TemplateView">
<em class="property">class </em><code class="descname">TemplateView</code><a class="headerlink" href="#TemplateView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.get_context_data" title="django.views.generic.base.ContextMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-redirectview">
<span id="redirectview"></span><h3><code class="docutils literal notranslate"><span class="pre">RedirectView</span></code><a class="headerlink" href="#redirectview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="RedirectView">
<em class="property">class </em><code class="descname">RedirectView</code><a class="headerlink" href="#RedirectView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.RedirectView.pattern_name" title="django.views.generic.base.RedirectView.pattern_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pattern_name</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.RedirectView.permanent" title="django.views.generic.base.RedirectView.permanent"><code class="xref py py-attr docutils literal notranslate"><span class="pre">permanent</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.RedirectView.query_string" title="django.views.generic.base.RedirectView.query_string"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_string</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.RedirectView.url" title="django.views.generic.base.RedirectView.url"><code class="xref py py-attr docutils literal notranslate"><span class="pre">url</span></code></a> [<a class="reference internal" href="base.html#django.views.generic.base.RedirectView.get_redirect_url" title="django.views.generic.base.RedirectView.get_redirect_url"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_redirect_url()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">delete()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">options()</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">post()</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">put()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
</div>
<div class="section" id="s-detail-views">
<span id="detail-views"></span><h2>详情视图<a class="headerlink" href="#detail-views" title="永久链接至标题">¶</a></h2>
<div class="section" id="s-detailview">
<span id="detailview"></span><h3><code class="docutils literal notranslate"><span class="pre">DetailView</span></code><a class="headerlink" href="#detailview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="DetailView">
<em class="property">class </em><code class="descname">DetailView</code><a class="headerlink" href="#DetailView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.context_object_name" title="django.views.generic.detail.SingleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_object_name" title="django.views.generic.detail.SingleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.model" title="django.views.generic.detail.SingleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.pk_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pk_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.query_pk_and_slug" title="django.views.generic.detail.SingleObjectMixin.query_pk_and_slug"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_pk_and_slug</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.queryset" title="django.views.generic.detail.SingleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_queryset" title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_field" title="django.views.generic.detail.SingleObjectMixin.slug_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_field</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_slug_field" title="django.views.generic.detail.SingleObjectMixin.get_slug_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_slug_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.slug_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_field</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><a class="reference internal" href="generic-display.html#django.views.generic.detail.BaseDetailView.get" title="django.views.generic.detail.BaseDetailView.get"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_data" title="django.views.generic.detail.SingleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_object" title="django.views.generic.detail.SingleObjectMixin.get_object"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_object()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
</div>
<div class="section" id="s-list-views">
<span id="list-views"></span><h2>列表视图<a class="headerlink" href="#list-views" title="永久链接至标题">¶</a></h2>
<div class="section" id="s-listview">
<span id="listview"></span><h3><code class="docutils literal notranslate"><span class="pre">ListView</span></code><a class="headerlink" href="#listview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="ListView">
<em class="property">class </em><code class="descname">ListView</code><a class="headerlink" href="#ListView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><a class="reference internal" href="generic-display.html#django.views.generic.list.BaseListView.get" title="django.views.generic.list.BaseListView.get"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
</div>
<div class="section" id="s-editing-views">
<span id="editing-views"></span><h2>编辑视图<a class="headerlink" href="#editing-views" title="永久链接至标题">¶</a></h2>
<div class="section" id="s-formview">
<span id="formview"></span><h3><code class="docutils literal notranslate"><span class="pre">FormView</span></code><a class="headerlink" href="#formview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="FormView">
<em class="property">class </em><code class="descname">FormView</code><a class="headerlink" href="#FormView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_class" title="django.views.generic.edit.FormMixin.form_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">form_class</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_form_class" title="django.views.generic.edit.FormMixin.get_form_class"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_class()</span></code></a>]</li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.initial" title="django.views.generic.edit.FormMixin.initial"><code class="xref py py-attr docutils literal notranslate"><span class="pre">initial</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_initial" title="django.views.generic.edit.FormMixin.get_initial"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_initial()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.prefix" title="django.views.generic.edit.FormMixin.prefix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">prefix</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_prefix" title="django.views.generic.edit.FormMixin.get_prefix"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_prefix()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.success_url" title="django.views.generic.edit.FormMixin.success_url"><code class="xref py py-attr docutils literal notranslate"><span class="pre">success_url</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_success_url" title="django.views.generic.edit.FormMixin.get_success_url"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_success_url()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_invalid" title="django.views.generic.edit.FormMixin.form_invalid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_invalid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_valid" title="django.views.generic.edit.FormMixin.form_valid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_valid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.get" title="django.views.generic.edit.ProcessFormView.get"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_context_data" title="django.views.generic.edit.FormMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_form" title="django.views.generic.edit.FormMixin.get_form"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_form_kwargs" title="django.views.generic.edit.FormMixin.get_form_kwargs"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_kwargs()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.post" title="django.views.generic.edit.ProcessFormView.post"><code class="xref py py-meth docutils literal notranslate"><span class="pre">post()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.put" title="django.views.generic.edit.ProcessFormView.put"><code class="xref py py-meth docutils literal notranslate"><span class="pre">put()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-createview">
<span id="createview"></span><h3><code class="docutils literal notranslate"><span class="pre">CreateView</span></code><a class="headerlink" href="#createview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="CreateView">
<em class="property">class </em><code class="descname">CreateView</code><a class="headerlink" href="#CreateView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.context_object_name" title="django.views.generic.detail.SingleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_object_name" title="django.views.generic.detail.SingleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.fields" title="django.views.generic.edit.ModelFormMixin.fields"><code class="xref py py-attr docutils literal notranslate"><span class="pre">fields</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_class" title="django.views.generic.edit.FormMixin.form_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">form_class</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_form_class" title="django.views.generic.edit.ModelFormMixin.get_form_class"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_class()</span></code></a>]</li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.initial" title="django.views.generic.edit.FormMixin.initial"><code class="xref py py-attr docutils literal notranslate"><span class="pre">initial</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_initial" title="django.views.generic.edit.FormMixin.get_initial"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_initial()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.model" title="django.views.generic.detail.SingleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.pk_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pk_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.prefix" title="django.views.generic.edit.FormMixin.prefix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">prefix</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_prefix" title="django.views.generic.edit.FormMixin.get_prefix"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_prefix()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.query_pk_and_slug" title="django.views.generic.detail.SingleObjectMixin.query_pk_and_slug"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_pk_and_slug</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.queryset" title="django.views.generic.detail.SingleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_queryset" title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_field" title="django.views.generic.detail.SingleObjectMixin.slug_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_field</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_slug_field" title="django.views.generic.detail.SingleObjectMixin.get_slug_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_slug_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.slug_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.success_url" title="django.views.generic.edit.FormMixin.success_url"><code class="xref py py-attr docutils literal notranslate"><span class="pre">success_url</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_success_url" title="django.views.generic.edit.ModelFormMixin.get_success_url"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_success_url()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_field</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_invalid" title="django.views.generic.edit.FormMixin.form_invalid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_invalid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.form_valid" title="django.views.generic.edit.ModelFormMixin.form_valid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_valid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.get" title="django.views.generic.edit.ProcessFormView.get"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_context_data" title="django.views.generic.edit.FormMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_form" title="django.views.generic.edit.FormMixin.get_form"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_form_kwargs" title="django.views.generic.edit.ModelFormMixin.get_form_kwargs"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_kwargs()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_object" title="django.views.generic.detail.SingleObjectMixin.get_object"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_object()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.post" title="django.views.generic.edit.ProcessFormView.post"><code class="xref py py-meth docutils literal notranslate"><span class="pre">post()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">put()</span></code></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-updateview">
<span id="updateview"></span><h3><code class="docutils literal notranslate"><span class="pre">UpdateView</span></code><a class="headerlink" href="#updateview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="UpdateView">
<em class="property">class </em><code class="descname">UpdateView</code><a class="headerlink" href="#UpdateView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.context_object_name" title="django.views.generic.detail.SingleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_object_name" title="django.views.generic.detail.SingleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.fields" title="django.views.generic.edit.ModelFormMixin.fields"><code class="xref py py-attr docutils literal notranslate"><span class="pre">fields</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_class" title="django.views.generic.edit.FormMixin.form_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">form_class</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_form_class" title="django.views.generic.edit.ModelFormMixin.get_form_class"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_class()</span></code></a>]</li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.initial" title="django.views.generic.edit.FormMixin.initial"><code class="xref py py-attr docutils literal notranslate"><span class="pre">initial</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_initial" title="django.views.generic.edit.FormMixin.get_initial"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_initial()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.model" title="django.views.generic.detail.SingleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.pk_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pk_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.prefix" title="django.views.generic.edit.FormMixin.prefix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">prefix</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_prefix" title="django.views.generic.edit.FormMixin.get_prefix"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_prefix()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.query_pk_and_slug" title="django.views.generic.detail.SingleObjectMixin.query_pk_and_slug"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_pk_and_slug</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.queryset" title="django.views.generic.detail.SingleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_queryset" title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_field" title="django.views.generic.detail.SingleObjectMixin.slug_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_field</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_slug_field" title="django.views.generic.detail.SingleObjectMixin.get_slug_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_slug_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.slug_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.success_url" title="django.views.generic.edit.FormMixin.success_url"><code class="xref py py-attr docutils literal notranslate"><span class="pre">success_url</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_success_url" title="django.views.generic.edit.ModelFormMixin.get_success_url"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_success_url()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_field</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.form_invalid" title="django.views.generic.edit.FormMixin.form_invalid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_invalid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.form_valid" title="django.views.generic.edit.ModelFormMixin.form_valid"><code class="xref py py-meth docutils literal notranslate"><span class="pre">form_valid()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.get" title="django.views.generic.edit.ProcessFormView.get"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_context_data" title="django.views.generic.edit.FormMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.FormMixin.get_form" title="django.views.generic.edit.FormMixin.get_form"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ModelFormMixin.get_form_kwargs" title="django.views.generic.edit.ModelFormMixin.get_form_kwargs"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_form_kwargs()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_object" title="django.views.generic.detail.SingleObjectMixin.get_object"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_object()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.ProcessFormView.post" title="django.views.generic.edit.ProcessFormView.post"><code class="xref py py-meth docutils literal notranslate"><span class="pre">post()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">put()</span></code></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-deleteview">
<span id="deleteview"></span><h3><code class="docutils literal notranslate"><span class="pre">DeleteView</span></code><a class="headerlink" href="#deleteview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="DeleteView">
<em class="property">class </em><code class="descname">DeleteView</code><a class="headerlink" href="#DeleteView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.context_object_name" title="django.views.generic.detail.SingleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_object_name" title="django.views.generic.detail.SingleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.model" title="django.views.generic.detail.SingleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.pk_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pk_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.query_pk_and_slug" title="django.views.generic.detail.SingleObjectMixin.query_pk_and_slug"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_pk_and_slug</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.queryset" title="django.views.generic.detail.SingleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_queryset" title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_field" title="django.views.generic.detail.SingleObjectMixin.slug_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_field</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_slug_field" title="django.views.generic.detail.SingleObjectMixin.get_slug_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_slug_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.slug_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-editing.html#django.views.generic.edit.DeletionMixin.success_url" title="django.views.generic.edit.DeletionMixin.success_url"><code class="xref py py-attr docutils literal notranslate"><span class="pre">success_url</span></code></a> [<a class="reference internal" href="mixins-editing.html#django.views.generic.edit.DeletionMixin.get_success_url" title="django.views.generic.edit.DeletionMixin.get_success_url"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_success_url()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_field</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">delete()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_data" title="django.views.generic.detail.SingleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_object" title="django.views.generic.detail.SingleObjectMixin.get_object"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_object()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">post()</span></code></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
</div>
<div class="section" id="s-date-based-views">
<span id="date-based-views"></span><h2>基于日期的视图<a class="headerlink" href="#date-based-views" title="永久链接至标题">¶</a></h2>
<div class="section" id="s-archiveindexview">
<span id="archiveindexview"></span><h3><code class="docutils literal notranslate"><span class="pre">ArchiveIndexView</span></code><a class="headerlink" href="#archiveindexview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="ArchiveIndexView">
<em class="property">class </em><code class="descname">ArchiveIndexView</code><a class="headerlink" href="#ArchiveIndexView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-yeararchiveview">
<span id="yeararchiveview"></span><h3><code class="docutils literal notranslate"><span class="pre">YearArchiveView</span></code><a class="headerlink" href="#yeararchiveview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="YearArchiveView">
<em class="property">class </em><code class="descname">YearArchiveView</code><a class="headerlink" href="#YearArchiveView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="generic-date-based.html#django.views.generic.dates.YearArchiveView.make_object_list" title="django.views.generic.dates.YearArchiveView.make_object_list"><code class="xref py py-attr docutils literal notranslate"><span class="pre">make_object_list</span></code></a> [<a class="reference internal" href="generic-date-based.html#django.views.generic.dates.YearArchiveView.get_make_object_list" title="django.views.generic.dates.YearArchiveView.get_make_object_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_make_object_list()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-montharchiveview">
<span id="montharchiveview"></span><h3><code class="docutils literal notranslate"><span class="pre">MonthArchiveView</span></code><a class="headerlink" href="#montharchiveview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="MonthArchiveView">
<em class="property">class </em><code class="descname">MonthArchiveView</code><a class="headerlink" href="#MonthArchiveView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month" title="django.views.generic.dates.MonthMixin.month"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month" title="django.views.generic.dates.MonthMixin.get_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month_format" title="django.views.generic.dates.MonthMixin.month_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month_format" title="django.views.generic.dates.MonthMixin.get_month_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_next_month" title="django.views.generic.dates.MonthMixin.get_next_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_month()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_previous_month" title="django.views.generic.dates.MonthMixin.get_previous_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_month()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-weekarchiveview">
<span id="weekarchiveview"></span><h3><code class="docutils literal notranslate"><span class="pre">WeekArchiveView</span></code><a class="headerlink" href="#weekarchiveview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="WeekArchiveView">
<em class="property">class </em><code class="descname">WeekArchiveView</code><a class="headerlink" href="#WeekArchiveView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.WeekMixin.week" title="django.views.generic.dates.WeekMixin.week"><code class="xref py py-attr docutils literal notranslate"><span class="pre">week</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.WeekMixin.get_week" title="django.views.generic.dates.WeekMixin.get_week"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_week()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.WeekMixin.week_format" title="django.views.generic.dates.WeekMixin.week_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">week_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.WeekMixin.get_week_format" title="django.views.generic.dates.WeekMixin.get_week_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_week_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-dayarchiveview">
<span id="dayarchiveview"></span><h3><code class="docutils literal notranslate"><span class="pre">DayArchiveView</span></code><a class="headerlink" href="#dayarchiveview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="DayArchiveView">
<em class="property">class </em><code class="descname">DayArchiveView</code><a class="headerlink" href="#DayArchiveView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day" title="django.views.generic.dates.DayMixin.day"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day" title="django.views.generic.dates.DayMixin.get_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day_format" title="django.views.generic.dates.DayMixin.day_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day_format" title="django.views.generic.dates.DayMixin.get_day_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month" title="django.views.generic.dates.MonthMixin.month"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month" title="django.views.generic.dates.MonthMixin.get_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month_format" title="django.views.generic.dates.MonthMixin.month_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month_format" title="django.views.generic.dates.MonthMixin.get_month_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_next_day" title="django.views.generic.dates.DayMixin.get_next_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_next_month" title="django.views.generic.dates.MonthMixin.get_next_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_month()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_previous_day" title="django.views.generic.dates.DayMixin.get_previous_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_previous_month" title="django.views.generic.dates.MonthMixin.get_previous_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_month()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-todayarchiveview">
<span id="todayarchiveview"></span><h3><code class="docutils literal notranslate"><span class="pre">TodayArchiveView</span></code><a class="headerlink" href="#todayarchiveview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="TodayArchiveView">
<em class="property">class </em><code class="descname">TodayArchiveView</code><a class="headerlink" href="#TodayArchiveView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.allow_empty" title="django.views.generic.list.MultipleObjectMixin.allow_empty"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_empty</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_allow_empty" title="django.views.generic.list.MultipleObjectMixin.get_allow_empty"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_empty()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.context_object_name" title="django.views.generic.list.MultipleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_object_name" title="django.views.generic.list.MultipleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day" title="django.views.generic.dates.DayMixin.day"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day" title="django.views.generic.dates.DayMixin.get_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day_format" title="django.views.generic.dates.DayMixin.day_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day_format" title="django.views.generic.dates.DayMixin.get_day_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.model" title="django.views.generic.list.MultipleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month" title="django.views.generic.dates.MonthMixin.month"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month" title="django.views.generic.dates.MonthMixin.get_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month_format" title="django.views.generic.dates.MonthMixin.month_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month_format" title="django.views.generic.dates.MonthMixin.get_month_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.ordering" title="django.views.generic.list.MultipleObjectMixin.ordering"><code class="xref py py-attr docutils literal notranslate"><span class="pre">ordering</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_ordering" title="django.views.generic.list.MultipleObjectMixin.get_ordering"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_ordering()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_by" title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_by</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_by" title="django.views.generic.list.MultipleObjectMixin.get_paginate_by"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_by()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginate_orphans</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans" title="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginate_orphans()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginator_class" title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">paginator_class</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.queryset" title="django.views.generic.list.MultipleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_queryset" title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_context_data" title="django.views.generic.list.MultipleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_date_list" title="django.views.generic.dates.BaseDateListView.get_date_list"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_list()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_items" title="django.views.generic.dates.BaseDateListView.get_dated_items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_items()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.BaseDateListView.get_dated_queryset" title="django.views.generic.dates.BaseDateListView.get_dated_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_dated_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_next_day" title="django.views.generic.dates.DayMixin.get_next_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_next_month" title="django.views.generic.dates.MonthMixin.get_next_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_month()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.get_paginator" title="django.views.generic.list.MultipleObjectMixin.get_paginator"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_paginator()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_previous_day" title="django.views.generic.dates.DayMixin.get_previous_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_previous_month" title="django.views.generic.dates.MonthMixin.get_previous_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_month()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin.paginate_queryset" title="django.views.generic.list.MultipleObjectMixin.paginate_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">paginate_queryset()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
<div class="section" id="s-datedetailview">
<span id="datedetailview"></span><h3><code class="docutils literal notranslate"><span class="pre">DateDetailView</span></code><a class="headerlink" href="#datedetailview" title="永久链接至标题">¶</a></h3>
<dl class="class">
<dt id="DateDetailView">
<em class="property">class </em><code class="descname">DateDetailView</code><a class="headerlink" href="#DateDetailView" title="永久链接至目标">¶</a></dt>
<dd></dd></dl>

<p><strong>属性</strong> （有可选的存取器）：</p>
<ul class="simple">
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.allow_future" title="django.views.generic.dates.DateMixin.allow_future"><code class="xref py py-attr docutils literal notranslate"><span class="pre">allow_future</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_allow_future" title="django.views.generic.dates.DateMixin.get_allow_future"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_allow_future()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.content_type" title="django.views.generic.base.TemplateResponseMixin.content_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">content_type</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.context_object_name" title="django.views.generic.detail.SingleObjectMixin.context_object_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">context_object_name</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_object_name" title="django.views.generic.detail.SingleObjectMixin.get_context_object_name"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_object_name()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.date_field" title="django.views.generic.dates.DateMixin.date_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">date_field</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DateMixin.get_date_field" title="django.views.generic.dates.DateMixin.get_date_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_date_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day" title="django.views.generic.dates.DayMixin.day"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day" title="django.views.generic.dates.DayMixin.get_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.day_format" title="django.views.generic.dates.DayMixin.day_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">day_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_day_format" title="django.views.generic.dates.DayMixin.get_day_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_day_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.ContextMixin.extra_context" title="django.views.generic.base.ContextMixin.extra_context"><code class="xref py py-attr docutils literal notranslate"><span class="pre">extra_context</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_names" title="django.views.generic.base.View.http_method_names"><code class="xref py py-attr docutils literal notranslate"><span class="pre">http_method_names</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.model" title="django.views.generic.detail.SingleObjectMixin.model"><code class="xref py py-attr docutils literal notranslate"><span class="pre">model</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month" title="django.views.generic.dates.MonthMixin.month"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month" title="django.views.generic.dates.MonthMixin.get_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.month_format" title="django.views.generic.dates.MonthMixin.month_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">month_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_month_format" title="django.views.generic.dates.MonthMixin.get_month_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_month_format()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.pk_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">pk_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.query_pk_and_slug" title="django.views.generic.detail.SingleObjectMixin.query_pk_and_slug"><code class="xref py py-attr docutils literal notranslate"><span class="pre">query_pk_and_slug</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.queryset" title="django.views.generic.detail.SingleObjectMixin.queryset"><code class="xref py py-attr docutils literal notranslate"><span class="pre">queryset</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_queryset" title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_queryset()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.response_class" title="django.views.generic.base.TemplateResponseMixin.response_class"><code class="xref py py-attr docutils literal notranslate"><span class="pre">response_class</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_field" title="django.views.generic.detail.SingleObjectMixin.slug_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_field</span></code></a> [<a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_slug_field" title="django.views.generic.detail.SingleObjectMixin.get_slug_field"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_slug_field()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.slug_url_kwarg" title="django.views.generic.detail.SingleObjectMixin.slug_url_kwarg"><code class="xref py py-attr docutils literal notranslate"><span class="pre">slug_url_kwarg</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_engine" title="django.views.generic.base.TemplateResponseMixin.template_engine"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_engine</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name" title="django.views.generic.base.TemplateResponseMixin.template_name"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name</span></code></a> [<a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.get_template_names" title="django.views.generic.base.TemplateResponseMixin.get_template_names"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_template_names()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_field</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix" title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code class="xref py py-attr docutils literal notranslate"><span class="pre">template_name_suffix</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year" title="django.views.generic.dates.YearMixin.year"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year" title="django.views.generic.dates.YearMixin.get_year"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year()</span></code></a>]</li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.year_format" title="django.views.generic.dates.YearMixin.year_format"><code class="xref py py-attr docutils literal notranslate"><span class="pre">year_format</span></code></a> [<a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.YearMixin.get_year_format" title="django.views.generic.dates.YearMixin.get_year_format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_year_format()</span></code></a>]</li>
</ul>
<p><strong>方法</strong></p>
<ul class="simple">
<li><a class="reference internal" href="base.html#django.views.generic.base.View.as_view" title="django.views.generic.base.View.as_view"><code class="xref py py-meth docutils literal notranslate"><span class="pre">as_view()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.dispatch" title="django.views.generic.base.View.dispatch"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dispatch()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">get()</span></code></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_context_data" title="django.views.generic.detail.SingleObjectMixin.get_context_data"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_context_data()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_next_day" title="django.views.generic.dates.DayMixin.get_next_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_next_month" title="django.views.generic.dates.MonthMixin.get_next_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_next_month()</span></code></a></li>
<li><a class="reference internal" href="mixins-single-object.html#django.views.generic.detail.SingleObjectMixin.get_object" title="django.views.generic.detail.SingleObjectMixin.get_object"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_object()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.DayMixin.get_previous_day" title="django.views.generic.dates.DayMixin.get_previous_day"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_day()</span></code></a></li>
<li><a class="reference internal" href="mixins-date-based.html#django.views.generic.dates.MonthMixin.get_previous_month" title="django.views.generic.dates.MonthMixin.get_previous_month"><code class="xref py py-meth docutils literal notranslate"><span class="pre">get_previous_month()</span></code></a></li>
<li><code class="docutils literal notranslate"><span class="pre">head()</span></code></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.http_method_not_allowed" title="django.views.generic.base.View.http_method_not_allowed"><code class="xref py py-meth docutils literal notranslate"><span class="pre">http_method_not_allowed()</span></code></a></li>
<li><a class="reference internal" href="mixins-simple.html#django.views.generic.base.TemplateResponseMixin.render_to_response" title="django.views.generic.base.TemplateResponseMixin.render_to_response"><code class="xref py py-meth docutils literal notranslate"><span class="pre">render_to_response()</span></code></a></li>
<li><a class="reference internal" href="base.html#django.views.generic.base.View.setup" title="django.views.generic.base.View.setup"><code class="xref py py-meth docutils literal notranslate"><span class="pre">setup()</span></code></a></li>
</ul>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      
        
          <div class="yui-b" id="sidebar">
            
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../../contents.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">基于类的通用视图——扁平化索引</a><ul>
<li><a class="reference internal" href="#simple-generic-views">简单的通用视图</a><ul>
<li><a class="reference internal" href="#view"><code class="docutils literal notranslate"><span class="pre">View</span></code></a></li>
<li><a class="reference internal" href="#templateview"><code class="docutils literal notranslate"><span class="pre">TemplateView</span></code></a></li>
<li><a class="reference internal" href="#redirectview"><code class="docutils literal notranslate"><span class="pre">RedirectView</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#detail-views">详情视图</a><ul>
<li><a class="reference internal" href="#detailview"><code class="docutils literal notranslate"><span class="pre">DetailView</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#list-views">列表视图</a><ul>
<li><a class="reference internal" href="#listview"><code class="docutils literal notranslate"><span class="pre">ListView</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#editing-views">编辑视图</a><ul>
<li><a class="reference internal" href="#formview"><code class="docutils literal notranslate"><span class="pre">FormView</span></code></a></li>
<li><a class="reference internal" href="#createview"><code class="docutils literal notranslate"><span class="pre">CreateView</span></code></a></li>
<li><a class="reference internal" href="#updateview"><code class="docutils literal notranslate"><span class="pre">UpdateView</span></code></a></li>
<li><a class="reference internal" href="#deleteview"><code class="docutils literal notranslate"><span class="pre">DeleteView</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#date-based-views">基于日期的视图</a><ul>
<li><a class="reference internal" href="#archiveindexview"><code class="docutils literal notranslate"><span class="pre">ArchiveIndexView</span></code></a></li>
<li><a class="reference internal" href="#yeararchiveview"><code class="docutils literal notranslate"><span class="pre">YearArchiveView</span></code></a></li>
<li><a class="reference internal" href="#montharchiveview"><code class="docutils literal notranslate"><span class="pre">MonthArchiveView</span></code></a></li>
<li><a class="reference internal" href="#weekarchiveview"><code class="docutils literal notranslate"><span class="pre">WeekArchiveView</span></code></a></li>
<li><a class="reference internal" href="#dayarchiveview"><code class="docutils literal notranslate"><span class="pre">DayArchiveView</span></code></a></li>
<li><a class="reference internal" href="#todayarchiveview"><code class="docutils literal notranslate"><span class="pre">TodayArchiveView</span></code></a></li>
<li><a class="reference internal" href="#datedetailview"><code class="docutils literal notranslate"><span class="pre">DateDetailView</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>上一个主题</h4>
  <p class="topless"><a href="mixins-date-based.html"
                        title="上一章">基于日期的混入</a></p>
  <h4>下一个主题</h4>
  <p class="topless"><a href="../clickjacking.html"
                        title="下一章">点击劫持保护</a></p>
  <div role="note" aria-label="source link">
    <h3>本页</h3>
    <ul class="this-page-menu">
      <li><a href="../../_sources/ref/class-based-views/flattened-index.txt"
            rel="nofollow">显示源代码</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>快速搜索</h3>
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="转向" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
              <h3>Last update:</h3>
              <p class="topless">7月 23, 2021</p>
          </div>
        
      
    </div>

    <div id="ft">
      <div class="nav">
    &laquo; <a href="mixins-date-based.html" title="基于日期的混入">previous</a>
     |
    <a href="../index.html" title="API 参考" accesskey="U">up</a>
   |
    <a href="../clickjacking.html" title="点击劫持保护">next</a> &raquo;</div>
    </div>
  </div>

      <div class="clearer"></div>
    </div>
  </body>
</html>